Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Graphics /
Chapter 3 - Geometric Styles / Geometric Styles Reference
Functions / Getting and Setting Curve Error


GXGetShapeCurveError

You can use the GXGetShapeCurveError function to determine the curve error of the style object associated with a particular shape.

Fixed GXGetShapeCurveError(gxShape source);
source
A reference to the shape whose curve error you want to determine.
function result
The curve error of the style object associated with the source shape.
DESCRIPTION
When a path shape has a curve error of 0, QuickDraw GX does not approximate the path shape with a polygon shape when converting it to a polygon. Instead, QuickDraw GX simply removes off-curve control points, as shown in "Using Curve Error When Converting Paths to Polygons" on page 3-45.

ERRORS, WARNINGS, AND NOTICES
Errors
out_of_memory
shape_is_nil
SEE ALSO
For a discussion of curve error, see "Curve Error" on page 3-14.

For examples of curve error, see "Using Curve Error When Converting Paths to Polygons" on page 3-45 and "Using Curve Error When Reducing Shapes" on page 3-49.

To determine the curve error of a style object, use the GXGetStyleCurveError function, which is described on page 3-115. To change the curve error of a style object, use the GXSetStyleCurveError function, which is described on page 3-116.

To change the curve error of a style object associated with a particular shape, use the GXSetShapeCurveError function, which is described in the next section.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help